//api文件仍保留但不建议使用，推荐使用models中的api。API files remain preserved (deprecated), use models APIs instead.
import type { MinishopSkuStatus, MinishopSkuStatusResponse } from './types.js';

import { requestClient } from '#/api/request';

export const getuctooMinishopSkuStatusList = async (page: number, pageSize: number,
  searchParams?: any) => {
  return requestClient.get<MinishopSkuStatusResponse>(`/uctoo/minishop_sku_status/${pageSize}/${page}`,{
    params: searchParams,
  });
};

export const getuctooMinishopSkuStatus = async (id: string) => {
  return requestClient.get<MinishopSkuStatus>(`/uctoo/minishop_sku_status/${id}`);
};

export const adductooMinishopSkuStatus = async (data: Partial<MinishopSkuStatus>) => {
  return requestClient.post<MinishopSkuStatus>('/uctoo/minishop_sku_status/add', data);
};

export const edituctooMinishopSkuStatus = async (data: Partial<MinishopSkuStatus>) => {
  return requestClient.post<MinishopSkuStatus>('/uctoo/minishop_sku_status/edit', data);
};

export const deleteuctooMinishopSkuStatus = async (id: string) => {
  return requestClient.post<any>('/uctoo/minishop_sku_status/del', { id });
};
